import request from '@/utils/request'

// 查询工程认证申报数据列表
export function listProject(query) {
  return request({
    url: '/declaration/project/list',
    method: 'get',
    params: query
  })
}

// 查询工程认证申报数据详细
export function getProject(pId) {
  return request({
    url: '/declaration/project/' + pId,
    method: 'get'
  })
}

// 新增工程认证申报数据
export function addProject(data) {
  return request({
    url: '/declaration/project',
    method: 'post',
    data: data
  })
}

// 修改工程认证申报数据
export function updateProject(data) {
  return request({
    url: '/declaration/project',
    method: 'put',
    data: data
  })
}

// 删除工程认证申报数据
export function delProject(pId) {
  return request({
    url: '/declaration/project/' + pId,
    method: 'delete'
  })
}

// 导出工程认证申报数据
export function exportProject(query) {
  return request({
    url: '/declaration/project/export',
    method: 'get',
    params: query
  })
}